<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>DouPHP 管理中心 - 文章列表 </title>
    <meta name="Copyright" content="Douco Design." />
    <link href="/css/public.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/js/global.js"></script>
    <script type="text/javascript" src="/js/jquery.autotextarea.js"></script>
</head>
<body>
<div id="dcWrap" style="margin-left:0">
    <div id="dcMain" style="margin-left: 0%;margin-right:0px;">
        <!-- 当前位置 -->
        <div id="urHere">DouPHP 管理中心<b>></b><strong>新闻列表</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3><a href="add_newsarticle.html" class="actionBtn add">添加新闻</a>新闻列表</h3>
        <div id="list">
            <form name="action" method="post" action="#">
                <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                    <tr>
                        <th width="22" align="center"><input name='chkall' type='checkbox' id='chkall' onclick='selectcheckbox(this.form)' value='check'></th>
                        <th width="40" align="center">编号</th>
                        <th align="center">文章名称</th>
                        <th width="150" align="center">文章分类</th>
                        <th width="80" align="center">添加日期</th>
                        <th width="80" align="center">操作</th>
                    </tr>
                    <foreach item="data" name="ne_data">
                        <tr>
                            <td align="center"><input type="checkbox" name="checkbox[]" value="10" /></td>
                            <td align="center"><{$data.ne_id}></td>
                            <td align="center"><{$data.ne_title}></td>
                            <td align="center"><{$data.nc_id}></td>
                            <!--<td align="center"><{$data.ne_d}></td>-->
                            <td align="center"><{$data.ne_time}></td>
                            <td align="center">
                                <a href="#">编辑</a> |
                                <a href="/Index/del_newsarticle?id=<{$data.ne_id}>">删除</a>
                            </td>
                        </tr>
                    </foreach>
                </table>
                <div class="action">
                    <select name="action" onchange="douAction()">
                        <option value="0">请选择...</option>
                        <option value="del_all">删除</option>
                        <option value="category_move">移动分类至</option>
                    </select>
                    <select name="new_cat_id" style="display:none">
                        <option value="0">未分类</option>
                        <option value="1"> 公司动态</option>
                        <option value="2"> 行业新闻</option>
                    </select>
                    <input name="submit" class="btn" type="submit" value="执行" />
                </div>
            </form>
        </div>
        <div class="clear"></div>
        <div class="pager">总计 <{$count}>个记录
            </div>           </div>
    </div>
    <div class="clear"></div>
    <div class="clear"></div> </div>
<script type="text/javascript">

    onload = function()
    {
        document.forms['action'].reset();
    }

    function douAction()
    {
        var frm = document.forms['action'];

        frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
    }

</script>
</body>
</html>